package com.healthcloud.dao.accompany;

import com.healthcloud.dao.BaseDao;
import com.healthcloud.entity.accompany.AccompanyBfEntity;
import com.healthcloud.entity.accompany.AccompanyBfVo;
import com.healthcloud.utils.PageParam;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * @author zhangjie
 */
public interface AccompanyBfDao extends BaseDao<AccompanyBfEntity> {

    List<AccompanyBfVo> queryListVo(@Param("entity") AccompanyBfVo entity, @Param("pageParam") PageParam pageParam);

    int queryTotalVo(@Param("entity") AccompanyBfVo entity);

    AccompanyBfVo queryObjectVo(@Param("id") Long id);

    List queryRemindList(@Param("entity") AccompanyBfVo entity, @Param("pageParam") PageParam pageParam);

    Integer queryRemindTotal(@Param("entity") AccompanyBfVo entity);

    /**
     * 修改病人身份证号
     * @param oldIdCard 修改前身份证号
     * @param newIdCard 修改后身份证号
     */
    void updateIdCard(@Param("newIdCard") String newIdCard, @Param("oldIdCard") String oldIdCard);
}
